<include file="Public/left" />

<form class="table-form" name="form1" method="post" action="<{:U('cateditok')}>">

<div class="nav-table">
<span class="on" href="table-one">编辑分类</span>
</div>
<div class="nav-bottom"></div>


<div class="input-box">
  <ul id="table-one">
  <li>
   <label for="name">名称</label>
   <input type="text" name="name" id="name" value="<{$content['name']}>" />
   <input type="hidden" name="id" id="id" value="<{$content['id']}>">
  </li>
  <li>
   <label for="pid">上级分类</label>
    <select name="pid" id="pid">
   <if condition="$content[pid] eq 0"> 
   <option value="0">顶级分类</option>
   <else />
   <option value="<{$content['pid']}>"><{:getCatName($content['pid'])}></option>
   <option value="0">顶级分类</option>
   </if>
   <volist name="cat" id="list">
   <option value="<{$list['id']}>"><{$list['name']}></option>
   </volist>
   </select>
  </li>
  <li>
  <label for="title">标题</label>
  <input type="text" name="title" id="title" value="<{$content['title']}>" />
  </li>
  <li>
  <label for="keyword">关键词</label>
  <input type="text" name="keyword" id="keyword" value="<{$content['keyword']}>" />
  </li>
  <li>
  <label for="url">别名</label>
  <input type="text" name="url" id="url" value="<{$content['url']}>" />
  </li>
  <li>
   <label for="ord">展示序号</label>
  <input type="text" name="ord" id="ord" value="<{$content['ord']}>" />
  </li>
  <li>
   <label for="description">内容摘要</label>
   <textarea name="description" id="description" cols="70" rows="5"><{$content['description']}></textarea>
  </li>
</ul>
 
  <div class="table-but"><input type="submit" name="button" id="button" value="提交"></div>
</div>
</form>
<include file="Public/foot" />